package com.example.malllocationserver.repository;

import com.example.malllocationserver.entity.History;
import com.example.malllocationserver.entity.User;
import org.apache.ibatis.annotations.Mapper;
import java.sql.Timestamp;
import java.util.List;

public interface UserRepository {
    public List<User> findAll();
    public void register(String userId,String userName,String password,String phone,String sex,Timestamp reg_time);
    public User login(String userId,String password);
     public boolean updatePhone(String userId,String phone);
     public boolean updatePassword(String userid,String password);
    public User find(String userid);

    public List<History> find_history(String userid);

    public boolean delete_history(String userid);

    public boolean addHistory(String userid, String storename, Timestamp time);

    public User getUser(String userid);
    public boolean save(String userid,String picture);
}


